package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Damage;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface DamageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Damage record);

    Damage selectByPrimaryKey(Long id);

    List<Damage> selectAll();

    int updateByPrimaryKey(Damage record);

    int query4Count(QueryObject qo);

    List<Damage> query4List(QueryObject qo);

    void changeState(Long id);

    Damage getDamageItemByClaimId(String staging);

    Long selectClaimIdByDamageId(Long id);
}